using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace Microsoft.Phone.Controls.Maps.PlatformServices
{
	[GeneratedCode("System.Runtime.Serialization", "4.0.0.0"), DebuggerStepThrough, DataContract(Name = "Pushpin", Namespace = "http://dev.virtualearth.net/webservices/v1/common")]
	internal class Pushpin : INotifyPropertyChanged
	{
		private string IconStyleField;
		private string LabelField;
		private Location LocationField;
		public event PropertyChangedEventHandler PropertyChanged
		{
			[MethodImpl(32)]
			add
			{
				this.PropertyChanged = (PropertyChangedEventHandler)Delegate.Combine(this.PropertyChanged, value);
			}
			[MethodImpl(32)]
			remove
			{
				this.PropertyChanged = (PropertyChangedEventHandler)Delegate.Remove(this.PropertyChanged, value);
			}
		}
		[DataMember]
		internal string IconStyle
		{
			get
			{
				return this.IconStyleField;
			}
			set
			{
				if (!object.ReferenceEquals(this.IconStyleField, value))
				{
					this.IconStyleField = value;
					this.RaisePropertyChanged("IconStyle");
				}
			}
		}
		[DataMember]
		internal string Label
		{
			get
			{
				return this.LabelField;
			}
			set
			{
				if (!object.ReferenceEquals(this.LabelField, value))
				{
					this.LabelField = value;
					this.RaisePropertyChanged("Label");
				}
			}
		}
		[DataMember]
		internal Location Location
		{
			get
			{
				return this.LocationField;
			}
			set
			{
				if (!object.ReferenceEquals(this.LocationField, value))
				{
					this.LocationField = value;
					this.RaisePropertyChanged("Location");
				}
			}
		}
		protected void RaisePropertyChanged(string propertyName)
		{
			PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
			if (propertyChanged != null)
			{
				propertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
}
